import LayoutTabbar from "@/layouts/tabbar/index.vue";

export default {
  routers: [
    {
      path: "/",
      name: "首页",
      component: LayoutTabbar,
      children: [
        {
          path: "",
          component: () => import("@/views/index.vue"),
          meta: {
            title: "首页",
          },
        },
      ],
    },
    {
      path: "/meal",
      name: "点餐",
      component: LayoutTabbar,
      children: [
        {
          path: "",
          component: () => import("@/views/meal/index.vue"),
          meta: {
            title: "点餐",
          },
        },
      ],
    },
    {
      path: "/order",
      name: "订单",
      component: LayoutTabbar,
      children: [
        {
          path: "",
          component: () => import("@/views/order/index.vue"),
          meta: {
            title: "订单",
          },
        },
      ],
    },
    {
      path: "/user",
      name: "我的",
      component: LayoutTabbar,
      children: [
        {
          path: "",
          component: () => import("@/views/user/index.vue"),
          meta: {
            title: "我的",
          },
        },
      ],
    },
  ],
  tabbarRouters: [
    {
      path: "/",
      name: "首页",
      icon: "home-o",
    },
    {
      path: "/meal",
      name: "点餐",
      icon: "shop-collect-o",
    },
    {
      path: "/order",
      name: "订单",
      icon: "label-o",
    },
    {
      path: "/user",
      name: "我的",
      icon: "manager-o",
    },
  ],
};
